Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

[MV-405] Fix deeplinking when app is in background #93

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

graszka22
Copy link
Collaborator

@graszka22 graszka22 commented Apr 17, 2023

The bug can be reproduced by trying to click a link when app was in Room or Leave screen. The JoinRoom screen was not mounted at all so there was no way to navigate to it.
Now all screens are in the same stack, not conditionally rendered with this fix: react-navigation/react-navigation#11315

Pro tip for fast testing on android: adb shell am start -W -a android.intent.action.VIEW -d "https://videoroom.membrane.work/room/Membrane%20Frontend%20Stand-up" com.membrane.reactnativemembrane simulates a deeplink click
on iOS there is a similar command

Copy link
Contributor

@skyman503 skyman503 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look ok to me and they works as you described it. However I'm not sure about the behaviour when user is currently in call. In my opinion in that case we should first display to the user some popup/modal informing them that they're about to leave a call before force moving them to the join room screen. Wdyt?

@graszka22
Copy link
Collaborator Author

@skyman503 good idea, I've added the modal 👍

Copy link
Contributor

@skyman503 skyman503 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good now, thanks!

@graszka22 graszka22 merged commit dc48f5b into master Apr 18, 2023
@graszka22 graszka22 deleted the graszka22/fix-deeplinking branch April 18, 2023 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants